package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * Description:小程序端Mapper层接口
 */
@Mapper
public interface UserMapper {

    @Select("select * from user where openid=#{openid}")
    User getByOpenId(String openid);

    void registerUser(User user);

    //微信支付用到的
    @Select("select * from user where id=#{userId}")
    User getById(Long userId);
}
